class Car:
    def __init__(self,model:str,wheels:int,color:str,weight:float,tank_size:float):
        self.model = model
        self.wheels = wheels
        self.color = color
        self.weight = weight
        self.tank_size = tank_size

    def run(self,purpose:str):
        print(f"{self.color}色的{self.model}有{self.wheels}个车轮，车重为{self.weight}千克，油箱容量为{self.tank_size}升，适用于{purpose}")

falali = Car(model="法拉利",wheels=4,color="红",weight= 1234,tank_size=50)
baoma = Car(model="宝马",wheels=4,color="白",weight= 1345,tank_size=60)
lingmu = Car(model="铃木",wheels=4,color="黑",weight= 1456,tank_size=70)
wuling = Car(model="五菱",wheels=4,color="白",weight= 1567,tank_size=80)
tuolaji = Car(model="拖拉机",wheels=4,color="黑",weight= 2234,tank_size=90)

falali.run("竞速")
baoma.run("旅行")
lingmu.run("通勤")
wuling.run("货运")
tuolaji.run("耕作")